package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_hanghai_buy", desc = "大航海货物买卖记录", autoSave = true, uploadCk = true, isCross = true)
public class LogHangHaiBuy extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "是否购买，1购买，0卖出")
    private boolean buy;

    @FieldTypeAnnotation(desc = "旧资金")
    private String oldMoney;
    @FieldTypeAnnotation(desc = "变化资金")
    private String changeMoney;
    @FieldTypeAnnotation(desc = "新资金")
    private String newMoney;

    @FieldTypeAnnotation(desc = "货物ID")
    private int goodsId;
    @FieldTypeAnnotation(desc = "数量")
    private int count;
    @FieldTypeAnnotation(desc = "单价")
    private String price;
    @FieldTypeAnnotation(desc = "涨幅")
    private String priceUp;

    @FieldTypeAnnotation(desc = "货物类型：1特产，2普通，3紧缺")
    private int goodsType;
    @FieldTypeAnnotation(desc = "旧成本")
    private String oldCost;
    @FieldTypeAnnotation(desc = "新成本")
    private String newCost;

    @FieldTypeAnnotation(desc = "港口ID")
    private int portId;

    public LogHangHaiBuy(long userId, int activityId, boolean buy, String oldMoney, String changeMoney, String newMoney, int goodsId, int count, String price, String priceUp, int goodsType, String oldCost, String newCost, int portId) {
        this.userId = userId;
        this.activityId = activityId;
        this.buy = buy;
        this.oldMoney = oldMoney;
        this.changeMoney = changeMoney;
        this.newMoney = newMoney;
        this.goodsId = goodsId;
        this.count = count;
        this.price = price;
        this.priceUp = priceUp;
        this.goodsType = goodsType;
        this.oldCost = oldCost;
        this.newCost = newCost;
        this.portId = portId;
    }

    public long getUserId() {
        return userId;
    }

}
